# -*- coding:utf-8 -*-
from passlib.apps import custom_app_context as pwd_contexgt

class HashPwd(object):

    @staticmethod
    def hashPwd(password):
        pw = pwd_contexgt.encrypt(password)
        return pw

    @staticmethod
    def verifyPwd(pwd, hPwd):
        verified = pwd_contexgt.verify(pwd, hPwd)
        return verified
